const toast = function (title,content) {
	return new Promise(
	  function (resolve, reject) {
		 uni.showModal({
			title: title,                                            
			content: content,    
			cancelText : '取消',                                                 
			confirmText : '确认',
			success:  res => {                                            
				if (res.confirm) {                                                   
				   resolve(true) 
				} else if (res.cancel) {                                                
					// console.log('用户点击取消');    
				   resolve(false)                              
				}
			}
		})
	})
}
export {toast}